Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Sun, 5 Jan 2025 18:25:14 +0000 (19:25 +0100)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Sun, 5 Jan 2025 18:25:14 +0000 (19:25 +0100)
commitc2f70ee8b6d86fcb50d02361f58eabc082bf7784
tree15d0c79c15b14787d377aacf9803cbc7dabefa50
parentc8bc1532728a6f7ce83744bbd4655d476404d36b
Reproducible builds requires that the build time stamp is not

recorded in binaries. In FPC they are fuild in via the $INCLUDE %DATE%
directive which calls getdatestr in globals.pas. To allow reproducible builds
we should honor the SOURCE_DATE_EPOCH environment variable. To not depend on
the dateutil unit, we include the required code from that package here.

Gbp-Pq: Name honor_SOURCE_DATE_EPOCH_in_date.patch
fpcsrc/compiler/globals.pas